package com.situ.mall.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.situ.mall.entity.Shipping;
import com.situ.mall.entity.User;

public interface ShippingMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Shipping record);

    int insertSelective(Shipping record);

    Shipping selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Shipping record);

    int updateByPrimaryKey(Shipping record);

    
//自己写的
    
    //0.测试查找所有
	List<Shipping> selectAll();

	//1.展示页面信息
	int getTotalCount();
	List<Shipping> selectByPage(@Param(value = "offset")Integer offset, @Param(value = "limit")Integer limit);

//前台
	//1.cart_list结算 --》 order_confirm 获取 用户的所有地址 by userId
	List<Shipping> selectOrderConfirmShippingInfoByUserId(Integer userId);

	/* 2020年4月19日 order_list.jsp☞order_info 订单详情  by userId & orderNo & shippingId*/
	Shipping selectShippingAdressByShippingId(Integer shippingId);
}